<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Morningstar QuoteSpeed II - Login</title>
	<style type="text/css">
		* { font-family: verdana, arial; font-size:11px; margin:0; padding:0; }
		img { margin-left:6px; }		
		#loginWrap {width:350px;/*background-color:#e6e6e6; border-top: 3px solid red;*/ padding:24px 30px 0 14px; margin-top:0; height:135px; }
		.menuInput { border-color:#6B6B6B #B9B9B9 #DDDDDD; border-style:solid; border-width:1px; color:#333333; /*display:inline; float:left;*/ font-size:10px; height:14px; padding:2px 0 2px 14px; margin: 4px 0 0 4px; }
		.pass { margin: 4px 0 0 7px; }
		.button { height:22px; width:60px; border-color:#6B6B6B #B9B9B9 #DDDDDD; border-style:solid; border-width:1px; color:#333333; display:inline; float:left; padding:2px 4px; margin: 10px 0 0 136px; background-color:#fff; font-size:10px; }
		#login a { text-decoration:none; font-size: 9px; line-height:14px; float:left; }
		form#login label { color:#333; font-size:10px; font-weight:bold; line-height:14px; padding-bottom: 6px; }
		#loginMsg { font-size: 11px; padding-bottom: 20px; }
</style>

   
<script>
  var debug = true;
  var loginurl = "http://"+(debug?"rtqdev":"rtq")+".morningstar.com/optjsp/usrLogin.jsp";
   function uLogin()
   { 
     document.getElementById("msg").innerHTML="";
     var usr = document.getElementById("usrName").value, pas = document.getElementById("pwd").value;
     if(usr==""||pas=="")  document.getElementById("msg").innerHTML = "please input user name and passwod"; 
     else  userLogin(function(data){ if (trim(data) == "" || data == -1) {
                        Cookies.clear("UsrID");
                        document.getElementById("msg").innerHTML="Login fail!";
                    }
                    else {
                        Cookies.set("UsrID", trim(data));
                        usrName = $("#usrName").val();
                        Cookies.set("UsrName", trim(usrName));
                        window.location = debug ? "rtq.htm" : "index.htm"} })
   }
</script>
 <script src="../lib/jquery.js" type="text/javascript"></script>
 <script src="../js/DBHelper.js" type="text/javascript"></script>
<script src="../lib/md5.js" type="text/javascript"></script>
</head>
<body>
	<img src="IM/mstar_hd.png" />
	<div id="loginWrap">
		<div id="loginMsg">Please enter your user name and password to log in.</div>
		<form name="login" id="login" method="post">
		 <label>Username:  
		 <input type="text" name="user" id="usrName" tabindex="1"  class="menuInput" />
		 </label><br>
		 <label>Password:    
		 <input type="password" name="password" id="pwd" tabindex="2" class="menuInput pass" /><br>
		 <input type="button" class="button"  value="Submit" onclick="uLogin()"/>
		 </label>
		 <br />
		 <span id="msg"></span>
		</form>
	</div>
			
</body>
</html>